﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace Water.Web.Controls.Attribute
{
    [AttributeUsage(AttributeTargets.All)]
    internal sealed class WebCategoryAttribute:CategoryAttribute
    {

        internal WebCategoryAttribute(string category):base(category)
        {
        }
        public override object  TypeId
        {
	        get 
	        { 
		         return typeof(CategoryAttribute);
	        }
        }

        protected override string  GetLocalizedString(string value)
        {
            GlobalizeDescriptionAttribute gd=new GlobalizeDescriptionAttribute("Category_"+value);
            return gd.Description;
        }

    }
}
